package com.yingside.io.io;

import java.io.*;

public class TestStream {
    public static void main(String[] args) {
        // 建议写成父类引用指向子类对象的方式
        // 注意一个问题，这里的父类都是抽象类
        try {
            InputStream fs = new FileInputStream("");
            OutputStream os = new FileOutputStream("");

            Reader reader = new FileReader("");
            Writer writer = new FileWriter("");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
